Setup client systemd unit
informação
ℹ️ Use esta unidade systemd para iniciar o TunGo automaticamente na reinicialização.
aviso
⚠️ A unidade systemd do TunGo requer a configuração padrão (última usada).
⚙️ Pré-requisitos
- TunGo está instalado conforme descrito em Início Rápido.
🛠️ Configuração
1️⃣ Criar o arquivo de serviço
sudo vim /etc/systemd/system/tungo.service
2️⃣ Colar esta configuração
[Unit]
Description=TunGo VPN Service
After=network-online.target
Wants=network-online.target
[Service]
Type=simple
ExecStart=tungo c
User=root
Restart=always
RestartSec=5
[Install]
WantedBy=multi-user.target
3️⃣ Habilitar o serviço
sudo systemctl enable tungo.service
4️⃣ Iniciar o serviço
sudo systemctl start tungo.service
5️⃣ Verificar o status
sudo systemctl status tungo.service